'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.mockPromise = undefined;

var _promiseDelay = require('./promiseDelay');

var mockPromise = exports.mockPromise = function mockPromise() {
    var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

    var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
        _ref$delay = _ref.delay,
        delay = _ref$delay === undefined ? 1000 : _ref$delay;

    return (0, _promiseDelay.promiseDelay)(delay).then(function () {
        return Promise.resolve(data);
    });
};
exports.default = mockPromise;